@echo off

:input
cls

set INPUT=
set TARGET=

echo Please choose from the following build options:
echo .
echo 1 = Build
echo 2 = Cruise
echo 3 = Initialize database - LOCAL
echo 4 = Initialize database - DEVSERVER
echo 5 = Roll back to latest revision - DEVSERVER
echo .

set /P INPUT=Please specify your option from above: %=%

if "%INPUT%"=="" goto input

if "%INPUT%"=="1" set TARGET=""build -D:environment=local""

if "%INPUT%"=="2" set TARGET=""cruise -D:environment=devserver""

if "%INPUT%"=="3" set TARGET=""initDatabase -D:environment=local""

if "%INPUT%"=="4" set TARGET=""initDatabase -D:environment=devserver""

if "%INPUT%"=="5" set TARGET=""rollbackToLastRevision -D:environment=devserver""

if "%TARGET%"=="" goto input

echo .
echo .
echo .

build/build.bat %TARGET%


pause